const { BaseCommand } = require("./base");

class SleepCommand extends BaseCommand {
    async execute() {
        const data = this.selfData;
        const timeout = data.timeout;
        await new Promise((resolve) => {
            setTimeout(() => {
                resolve();
            }, timeout);
        });
    }
}

module.exports = {
    SleepCommand,
};
